<template>
  <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
    <p>刷新次数: {{ count }}</p>
  </van-pull-refresh>
</template>

<script>
export default {
  data() {
    return {
      count: 0,
      isLoading: false
    };
  },
  methods: {
    onRefresh() {
      setTimeout(() => {
        this.$toast("刷新成功");
        this.isLoading = false;
        this.count++;
      }, 1000);
    }
  }
};
</script>

<style lang="less" scoped>
.doge {
  width: 140px;
  height: 72px;
  margin-top: 8px;
  border-radius: 4px;
}
</style>